package pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value="module")
public class Module {
    //指定主键映射
    @TableId(value = "id")
    private Integer id;
    private String author;
    private String path;
    private String photo;

    public Module(Integer id, String author, String path, String photo) {
        this.id = id;
        this.author = author;
        this.path = path;
        this.photo = photo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Module{" +
                "id=" + id +
                ", author='" + author + '\'' +
                ", path='" + path + '\'' +
                ", photo='" + photo + '\'' +
                '}';
    }
}
